<form id="edit-form" class="form-horizontal" style="position:relative;background: #fff" role="form"
      data-toggle="validator" method="POST" action="">
    <link rel="stylesheet" href="/assets/js/backend/common/flatpickr.min.css">
    <script src="/assets/js/backend/common/flatpickr.js"></script>
    <script src="/assets/js/backend/common/zh.js"></script>
    <div class="panel-body">
        <div class="panel">
            <ul class="nav nav-tabs">
                <li class="active"><a href="#tabs_0" data-toggle="tab" aria-expanded="true">课程项目</a></li>
            </ul>
        </div>
        <div id="myTabContent" class="tab-content">
            <div class="tab-pane fade active in" id="tabs_0">
                <input type="hidden" id="row" name="data" value='<?php echo json_encode($row);?>'/>
                <div class="form-group">
                    <label for="c-name" class="control-label col-xs-12 col-sm-2">项目名称:</label>
                    <div class="col-xs-12 col-sm-8" id="div-name">
                        <input type="text" id="c-name" name="row[name]" value="{$row.name}" class="form-control"
                               data-tip="项目名称" data-rule="required"/>
                    </div>
                </div>
                <div class="form-group">
                    <label for="c-school_id" class="control-label col-xs-12 col-sm-2">学校:</label>
                    <div class="col-xs-12 col-sm-8" id="div-school_id">
                        <select name="row[school_id]" id="c-school_id" class="form-control">
                        </select>
                    </div>
                </div>

                <div class="form-group">
                    <label for="c-ocation_class" class="control-label col-xs-12 col-sm-2">地点:<br>(按Ctrl键选)</label>
                    <div class="col-xs-12 col-sm-8" id="div-ocation_class">
                        <select name="row[ocation_id][]" id="c-ocation_class" style="height:200px"
                                class="form-control selects" multiple>
                        </select>
                    </div>
                </div>

                <div class="form-group">
                    <label for="c-classes_id" class="control-label col-xs-12 col-sm-2">班级:<br>(按Ctrl键选)</label>
                    <div class="col-xs-12 col-sm-8" id="div-classes_id">
                        <select name="row[classes_id][]" id="c-classes_id" style="height:200px"
                                class="form-control selects" multiple>
                        </select>
                    </div>
                </div>


                <div class="form-group">
                    <label for="c-start_date" class="control-label col-xs-12 col-sm-2">项目开始时间:</label>
                    <div class="col-xs-12 col-sm-8" id="div-start_date">
                        <div class="form-inline">
                            <input type="text" id="c-start_date" name="row[start_date]" value="{$row.start_date}"
                                   class="form-control datetimepicker" data-date-format="YYYY-MM-DD"
                                   data-tip="项目开始时间" data-rule=""/>
                        </div>
                    </div>
                </div>

                <div class="form-group">
                    <label class="control-label col-xs-12 col-sm-2">排除国际假日:</label>
                    <div class="col-xs-12 col-sm-8" id="div-exclint_holidays">
                        <input id="c-switch"  name="row[exclint_holidays]" type="hidden" value="{$row.exclint_holidays}">
                        <a href="javascript:;" data-toggle="switcher" class="btn-switcher" data-input-id="c-switch" data-yes="1" data-no="0">
                            <i class="fa fa-toggle-on text-success {eq name=" $row.exclint_holidays" value="0"}fa-flip-horizontal text-gray{/eq} fa-2x"></i>
                        </a></div>
                </div>


                <div class="form-group">
                    <label for="c-exclint_day" class="control-label col-xs-12 col-sm-2">指定日期排除:</label>
                    <div class="col-xs-12 col-sm-8" id="div-exclint_day">
                        <div class="form-inline">
                            <input type="text" id="c-exclint_day" name="row[exclint_day]"
                                   value="<?php echo date('Y-m-d');?>" class="form-control"
                                   data-date-format="YYYY-MM-DD" data-tip="指定日期排除" data-rule=""/>
                        </div>
                    </div>
                </div>

                <div class="form-group layer-footer">
                    <label class="control-label col-xs-12 col-sm-2"></label>
                    <div class="col-xs-12 col-sm-8">
                        <button type="submit" class="btn btn-success btn-embossed disabled">{:__('OK')}</button>
                        <button type="reset" class="btn btn-default btn-embossed">{:__('Reset')}</button>
                    </div>
                </div>
            </div>
            <div class="tab-pane fade in coursetable_tabs_1" id="tabs_1"></div>

        </div>

    </div>
    </div>
</form>

